<div class="row-fluid headline-row">
    <div class="span12 headline-line">
        <div class="headline pull-left">
            <h1><?php echo $headline ?></h1>
        </div>
    </div>
    <div class="clearfix"></div>
</div>

<div class="well" style="margin-top:20px;">
    <a href="javascript:void(0)" class="do_vote btn btn-primary btn-block" data-loading-text='โหวตแล้ว' data-shop-hash="<?php echo hashids_encrypt($shop_fix['id'])?>"><i class="icon icon-thumbs-up"></i> โหวตชอบร้านนี้</a>
</div>

<div class="well-small" style="">
    <p>
        <?php
        if (isset($shop_fix)) {
            $this->load->helper('bbcode');
            echo nl2br(parse_bbcode($shop_fix['shop_description']));
        }
        ?>
    </p>
</div>

<div name="fb-like-box" class="fb-like-box" data-href="<?php echo isset($shop_fix) ? $shop_fix['shop_facebook'] : '' ?>" data-width="465" data-height="400" data-show-faces="false" data-stream="true" data-header="false"></div>


<script>
    $('.do_vote').click(function() {
        $(this).button('loading');

        var shop_hash = $(this).attr('data-shop-hash');
        $.post('<?php echo base_url() ?>ajax/do_vote', {'shop_hash': shop_hash});
    });
</script>

